Skip to content

Conversation

@eemeli
Copy link
Collaborator

@eemeli eemeli commented Nov 12, 2024

More explicitly defines numeric matching for when it's well-defined, and when it's not well-defined.

Leaves values beyond non-negative integers as implementation-defined, and replaces the JSON reference with the digit-size-option ABNF rule, as it's a better fit.

Copy link
Member

@aphillips aphillips left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with removing the JSON reference, but we don't need to get carried away perhaps?

@aphillips aphillips added functions Issue pertains to the default function set fast-track Editorial change permitted to use fast-track merge rules LDML46.1 labels Nov 13, 2024
@aphillips
Copy link
Member

(chair hat ON)

We approved fixing this text in the 2024-11-11 call, so this is on the fast track. Group members should weigh in if they have comments. Note that I require two approvals to merge, per process.

Copy link
Member

@aphillips aphillips left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is now fine.

I note that the match instructions have this:

If the value of key matches the production number-literal, then

The number-literal production handles fractions and exponents. The WG consensus is not to solve this just now, but really... it's goofy to allow (in fact, require checking for) keys like 123.456 and 1.23e7 but not define a match for (some of) them. 'Nuff said. This PR accomplishes the goal set out for it.

@aphillips
Copy link
Member

@macchiati Can I get a review of this? I need two to merge.

Copy link
Member

@macchiati macchiati left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor change needed.

@aphillips
Copy link
Member

@macchiati Fixed.

@aphillips aphillips merged commit 852c5e2 into main Nov 15, 2024
2 checks passed
@eemeli eemeli deleted the exact-numeric-match branch November 15, 2024 23:14
@eemeli eemeli added this to the LDML 46.1 milestone Jul 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fast-track Editorial change permitted to use fast-track merge rules functions Issue pertains to the default function set

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants